<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<hdjs/>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li><a href="{|U:'index'}" class="action">商品列表</a></li>
				<li><a href="{|U:'add'}">商品添加</a></li>
			</ul>
		</div>
		<form action="" method="post">
			<table class="table2">
				<thead>
					<tr>
						<td class="w50">商品ID</td>
						<td>商品名称</td>
						<td>货号</td>
						<td>品牌ID</td>
						<td>价格</td>
						<td>上架</td>
				        <td>热门</td>
				        <td>新品</td>
				        <td>精品</td>
				        <td>栏目</td>
						<td class="w200">操作</td>
					</tr>
				</thead>
				<tbody>
					<list from='$goods' name='$d'>
						<tr>
							<td>{$d.gid}</td>
							<td>{$d.goods_name}</td>
							<td>{$d.goods_sn}</td>
							<td>{$d.brand_id}</td>
							<td>{$d.goods_price}</td>
				            <td><if value="$d.is_on_sale eq 1">√<else>×</if></td>
				            <td><if value="$d.is_hot">√<else>×</if></td>
				            <td><if value="$d.is_new">√<else>×</if></td>
				            <td><if value="$d.is_best">√<else>×</if></td>
           					<td>{$d.cat_name}</td>
							<td>
								<a href="{|U:'edit',array('gid'=>$d['gid'])}">编辑</a>|
								<a href="{|U:'del',array('gid'=>$d['gid'])}">删除</a> |
								<a href="{|U:'Product/manage',array('goods_gid'=>$d['gid'])}">货品</a>
							</td>
						</tr>
					</list>					
				</tbody>
			</table>		
		</form>
		
	</div>
</body>
</html>